package com.xue.domain;

import io.netty.buffer.ByteBuf;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @author xuejingbao
 * @create 2022-08-02 10:47
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class LocationInfo extends Info {

    /**
     * 1：动态车辆，2：静态车辆，3，行人
     */
    private Integer classType;

    /**
     * 唯一标识
     */
    private String id;

    /**
     * x坐标
     */
    private Double coordinateX;

    /**
     * y坐标
     */
    private Double coordinateY;

    @Override
    public Info decoding(ByteBuf content) {
        return super.decoding(content);
    }

    @Override
    public Integer getInfoType() {
        return Info.LOCATION_INFO;
    }

}
